<?php
class IndexAction extends Action {
    public function index(){
        $News = M('News');

        $new_rem = $News->where('status=1 and recommend = 1')->order('published')->limit(3)->select();

        $this->display();
    }
}